std::unordered_map::at

From Cppreference

Jump to: navigation, search
​T& at( const Key& key );
(1) (C++0x feature)
​T& at( Key&& key );
(2) (C++0x feature)
Returns a reference to the mapped value of the element with key equivalent to key. If no such element exist, exception of type ​out_of_range​ is thrown.

Contents

Parameters

key - the key of the element to find

Return value

reference to the mapped value of the requested element

Complexity

See also

operator[]
access specified element
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages